// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_REP_CHECK_INFO
// * CreateDate    : 2014-06-05 18:30:32
// * Creater       : CodeSmith
// * LastChangeDate: 2014-06-05 18:30:32
// * LastChanger   : 2014-06-05 18:30:32
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;
using ESOL.Common;

namespace ESOL.Common.Entity
{
    [DataContract]
	[Serializable]
	public partial class RepCheckInfoEntity : EntityBase
    {
        public RepCheckInfoTable TableSchema
        {
            get
            {
                return RepCheckInfoTable.Current;
            }
		}
		
		public RepCheckInfoEntity()
        {

        }
		
		public RepCheckInfoEntity(DataRow dr)
        {
			if(dr == null)
			{
				return;
			}
			this.CheckInfoId = Convert.ToString(CommonFunctions.ToObject(dr["CHECK_INFO_ID"]));
			this.RegisterId = Convert.ToString(CommonFunctions.ToObject(dr["REGISTER_ID"]));
			this.CheckCode = Convert.ToString(CommonFunctions.ToObject(dr["CHECK_CODE"]));
			this.CheckBy = Convert.ToString(CommonFunctions.ToObject(dr["CHECK_BY"]));
			this.CheckDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["CHECK_DATE"]));
			this.Status = Convert.ToString(CommonFunctions.ToObject(dr["STATUS"]));
			this.CreateBy = Convert.ToString(CommonFunctions.ToObject(dr["CREATE_BY"]));
			this.CreateDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["CREATE_DATE"]));
			this.LastModifiedBy = Convert.ToString(CommonFunctions.ToObject(dr["LAST_MODIFIED_BY"]));
			this.LastModifiedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["LAST_MODIFIED_DATE"]));
			this.ApprovedDy = Convert.ToString(CommonFunctions.ToObject(dr["APPROVED_DY"]));
			this.ApprovedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["APPROVED_DATE"]));
			this.AttachedFile = Convert.ToString(CommonFunctions.ToObject(dr["ATTACHED_FILE"]));
        }
		
		public RepCheckInfoEntity(DataRowView dr)
        {
			if(dr == null)
			{
				return;
			}
			this.CheckInfoId = Convert.ToString(CommonFunctions.ToObject(dr["CHECK_INFO_ID"]));
			this.RegisterId = Convert.ToString(CommonFunctions.ToObject(dr["REGISTER_ID"]));
			this.CheckCode = Convert.ToString(CommonFunctions.ToObject(dr["CHECK_CODE"]));
			this.CheckBy = Convert.ToString(CommonFunctions.ToObject(dr["CHECK_BY"]));
			this.CheckDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["CHECK_DATE"]));
			this.Status = Convert.ToString(CommonFunctions.ToObject(dr["STATUS"]));
			this.CreateBy = Convert.ToString(CommonFunctions.ToObject(dr["CREATE_BY"]));
			this.CreateDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["CREATE_DATE"]));
			this.LastModifiedBy = Convert.ToString(CommonFunctions.ToObject(dr["LAST_MODIFIED_BY"]));
			this.LastModifiedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["LAST_MODIFIED_DATE"]));
			this.ApprovedDy = Convert.ToString(CommonFunctions.ToObject(dr["APPROVED_DY"]));
			this.ApprovedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["APPROVED_DATE"]));
			this.AttachedFile = Convert.ToString(CommonFunctions.ToObject(dr["ATTACHED_FILE"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return RepCheckInfoTable.Current;
            }
        }
		
		#region Perporty List
        [DataMember]
        public string CheckInfoId
        {
            get { return Convert.ToString(GetData(RepCheckInfoTable.C_CHECK_INFO_ID)); }
            set { SetData(RepCheckInfoTable.C_CHECK_INFO_ID, value); }
        }
		
        [DataMember]
        public string RegisterId
        {
            get { return Convert.ToString(GetData(RepCheckInfoTable.C_REGISTER_ID)); }
            set { SetData(RepCheckInfoTable.C_REGISTER_ID, value); }
        }
		
        [DataMember]
        public string CheckCode
        {
            get { return Convert.ToString(GetData(RepCheckInfoTable.C_CHECK_CODE)); }
            set { SetData(RepCheckInfoTable.C_CHECK_CODE, value); }
        }
		
        [DataMember]
        public string CheckBy
        {
            get { return Convert.ToString(GetData(RepCheckInfoTable.C_CHECK_BY)); }
            set { SetData(RepCheckInfoTable.C_CHECK_BY, value); }
        }
		
        [DataMember]
        public DateTime CheckDate
        {
            get { return Convert.ToDateTime(GetData(RepCheckInfoTable.C_CHECK_DATE)); }
            set { SetData(RepCheckInfoTable.C_CHECK_DATE, value); }
        }
		
        [DataMember]
        public string Status
        {
            get { return Convert.ToString(GetData(RepCheckInfoTable.C_STATUS)); }
            set { SetData(RepCheckInfoTable.C_STATUS, value); }
        }
		
        [DataMember]
        public string CreateBy
        {
            get { return Convert.ToString(GetData(RepCheckInfoTable.C_CREATE_BY)); }
            set { SetData(RepCheckInfoTable.C_CREATE_BY, value); }
        }
		
        [DataMember]
        public DateTime CreateDate
        {
            get { return Convert.ToDateTime(GetData(RepCheckInfoTable.C_CREATE_DATE)); }
            set { SetData(RepCheckInfoTable.C_CREATE_DATE, value); }
        }
		
        [DataMember]
        public string LastModifiedBy
        {
            get { return Convert.ToString(GetData(RepCheckInfoTable.C_LAST_MODIFIED_BY)); }
            set { SetData(RepCheckInfoTable.C_LAST_MODIFIED_BY, value); }
        }
		
        [DataMember]
        public DateTime LastModifiedDate
        {
            get { return Convert.ToDateTime(GetData(RepCheckInfoTable.C_LAST_MODIFIED_DATE)); }
            set { SetData(RepCheckInfoTable.C_LAST_MODIFIED_DATE, value); }
        }
		
        [DataMember]
        public string ApprovedDy
        {
            get { return Convert.ToString(GetData(RepCheckInfoTable.C_APPROVED_DY)); }
            set { SetData(RepCheckInfoTable.C_APPROVED_DY, value); }
        }
		
        [DataMember]
        public DateTime ApprovedDate
        {
            get { return Convert.ToDateTime(GetData(RepCheckInfoTable.C_APPROVED_DATE)); }
            set { SetData(RepCheckInfoTable.C_APPROVED_DATE, value); }
        }
		
        [DataMember]
        public string AttachedFile
        {
            get { return Convert.ToString(GetData(RepCheckInfoTable.C_ATTACHED_FILE)); }
            set { SetData(RepCheckInfoTable.C_ATTACHED_FILE, value); }
        }
		
		#endregion
	}
	
	
}	

